export default [
  {
    name: 'resources',
    path: '/resources',
    component: () => import('@/layout'),
    alwaysShow: true,
    meta: { title: '资源管理', icon: 'documentation' },
    permissions: [
      'resources:apply:page',
      'resources:sites:page',
      'resources:fb-number-management:page'
      // 'resources:fb-advert-management:page' // TODO
    ],
    children: [
      {
        name: 'resources-apply',
        path: 'resources-apply',
        component: () => import('@/views/resources/apply'),
        meta: { title: '资源申请' },
        permissions: ['resources:apply:page']
      },
      {
        name: 'resources-sites',
        path: 'resources-sites',
        component: () => import('@/views/resources/sites'),
        meta: { title: '投放站点管理' },
        permissions: ['resources:sites:page']
      },
      {
        name: 'resources-fb-number-management',
        path: 'resources-fb-number-management',
        component: () => import('@/views/resources/fb-number-management'),
        meta: { title: 'FB投放个号管理' },
        permissions: ['resources:fb-number-management:page']
      },
      {
        name: 'resources-fb-advert-management',
        path: 'resources-fb-advert-management',
        component: () =>
          import('@/views/resources/resources-fb-advert-management'),
        meta: { title: 'FB广告账户管理' }
        // permissions: ['resources:fb-advert-management:page'] // TODO
      }
    ]
  }
];
